package com.lg.algorithm.collections.list;

import java.util.concurrent.CopyOnWriteArrayList;

/**
 * 编辑操作全都有 重入锁
 */
public class CopyOnWriteArrayListTest {
    public static void main(String[] args) {
        CopyOnWriteArrayList copyOnWriteArrayList = new CopyOnWriteArrayList();
        copyOnWriteArrayList.add("aa");
        System.out.println(copyOnWriteArrayList.get(0));

        copyOnWriteArrayList.set(2, 55);
        copyOnWriteArrayList.remove(2);


    }
}
